package com.java复习.练习一二四答案.demo6;

public class Artist {

    public void drawShape(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        Artist artist = new Artist();
        Shape shape = new Rectangle(3,4);
              shape = new LeftTriangle(3,4);
        artist.drawShape(shape);
    }
}
